package app.gt.screen.logo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import app.gt.R;

public class LogoScreen extends Activity {
	protected boolean active = true;
	protected int splashtime = 5000;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.logoscreen);
        Thread SplashTread = new Thread(){
        	public void run() {
				try {
					int waited = 0;
					while (active && (waited< splashtime)) {
						sleep(100);
						if (active) {
							waited+=100;
						}
						
					}
				} catch (Exception e) {
					// TODO: handle exception
				}
				finally{
					finish();
					startActivity(new Intent("app.gt.screen.login.LoginScreen"));
					stop();
				}
			}
        };
        SplashTread.start();
    }
}